# 作业四
word = 'this is a test'
word.strip()
# 获取单词
word.split(' ')
# 反转
a=word.split(' ')[::-1]
# 拼接
print(" ".join(a))
